import service from '@/utils/request'

export const useReturn_carsApi = (id: number) => {
	return service.get('/nb/return_cars/findById' ,{
		params:{
			id:id
		}})
}

export const useReturn_carsSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.post('/nb/return_cars/edit', dataForm)
	} else {
		return service.post('/nb/return_cars/add', dataForm)
	}
}